{"version":3,"file":"embed_field.map.js","names":["BX","namespace","bind","Landing","Utils","fireCustomEvent","getQueryParam","getQueryParams","remove","create","UI","Field","Embed","data","textOnly","content","source","src","placeholder","Loc","getMessage","description","Text","apply","this","arguments","hiddenInput","props","type","value","input","innerText","error","className","Dom","append","layout","style","adjustForm","isBgVideo","prototype","constructor","__proto__","onInputInput","getValue","onInputHandler","onValueChangeHandler","event","Event","BaseEvent","compatData","emit","isEmbedUrl","Matchers","youtube","test","vimeo","rutube","vk","vine","facebookVideos","mediaService","getEmbedURL","preview","getEmbedPreview","ratio","isVertical","Block","Node","DEFAULT_RATIO_V","DEFAULT_RATIO_H","skipParams","String","trim","hideError","form","ServiceFactory","MediaService","Factory","setBgVideoMode","getSettingsForm","appendChild","isDataLoaded","readyToSave","addCustomEvent","showError","message","Type","isStringFilled","BaseField","createError","clean"],"sources":["embed_field.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAEb,IAAIC,EAAOF,GAAGG,QAAQC,MAAMF,KAC5B,IAAIG,EAAkBL,GAAGG,QAAQC,MAAMC,gBACvC,IAAIC,EAAgBN,GAAGG,QAAQC,MAAMG,eACrC,IAAIC,EAASR,GAAGG,QAAQC,MAAMI,OAC9B,IAAIC,EAAST,GAAGG,QAAQC,MAAMK,OAU9BT,GAAGG,QAAQO,GAAGC,MAAMC,MAAQ,SAASC,GAEpCA,EAAKC,SAAW,KAChB,IAAIC,EAAUF,EAAKE,QACnBF,EAAKE,QAAUA,EAAQC,QAAUD,EAAQE,IACzCJ,EAAKK,YAAclB,GAAGG,QAAQgB,IAAIC,WAAW,0CAC7CP,EAAKQ,YACJR,EAAKQ,aACF,2CAA2CrB,GAAGG,QAAQgB,IAAIC,WAAW,0CAA0C,UAEnHpB,GAAGG,QAAQO,GAAGC,MAAMW,KAAKC,MAAMC,KAAMC,WAIrCD,KAAKE,YAAcjB,EAAO,QAAS,CAClCkB,MAAO,CAACC,KAAM,SAAUC,MAAOd,EAAQE,KAAOO,KA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